<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="commons/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="${ctx }/static/css/pintuer.css">
<link rel="stylesheet" href="${ctx }/static/css/admin.css">
<script src="${ctx }/static/js/jquery.js"></script>
<script src="${ctx }/static/js/pintuer.js"></script>
	
<%-- <script type="text/javascript">
	<%if (session.getAttribute("loginMessage") == null) {%>
		alert("请登录后访问！");                        /*  验证是否存在ID，若没有表示没登录 */
	 	/* window.location.href='login'; */
	 	window.parent.location.href='${ctx }/login';
	<%}%>
	</script> --%>
	
</head>
<body>
	<div class="panel admin-panel">
		<div class="panel-head">
			<strong><span class="icon-key"></span> 修改会员密码</strong>
		</div>
		<div class="body-content">
			<form method="post" class="form-x" action="doEditPassword">
				<div class="form-group">
					<div class="label">
						<label for="sitename">管理员帐号：</label>
					</div>
					<div class="field">
						<label style="line-height: 33px;">
							${loginMessage.username} <!-- 保存到session中的信息，在每个jsp中都可以直接拿值。 -->
						</label>
					</div>
				</div>
				<!--  <div class="form-group">
        <div class="label">
          <label for="sitename">原始密码：</label>
        </div>
        <div class="field">
          <input type="password" class="input w50" id="mpass" name="mpass" size="50" placeholder="请输入原始密码" data-validate="required:请输入原始密码" />       
        </div>
      </div>   -->
				<div class="form-group">
					<div class="label">
						<label for="sitename">新密码：</label>
					</div>
					<div class="field">
						<input type="password" class="input w50" name="newpass" size="50"
							placeholder="请输入新密码"
							data-validate="required:请输入新密码,length#>=5:新密码不能小于5位" />
						<div style="height: 14px; margin-bottom: -20px; margin-top: 10px;">
							<label id="alert"
								style="margin-left: 20px; margin-top: 10px; color: red; font-size: 14px; font-weight: 700;">${alert}</label>
						</div>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label for="sitename">确认新密码：</label>
					</div>
					<div class="field">
						<input type="password" class="input w50" name="renewpass"
							size="50" placeholder="请再次输入新密码"
							data-validate="required:请再次输入新密码,repeat#newpass:两次输入的密码不一致" />
					</div>
				</div>

				<div class="form-group">
					<div class="label">
						<label></label>
					</div>
					<div class="field">
						<button class="button bg-main icon-check-square-o" type="submit">
							提交</button>${Msg}
					</div>
				</div>
			</form>
		</div>
	</div>
	<script type="text/javascript">
		$(document).ready(function() {
			$('#alert').fadeOut(3000);
		});
	</script>
</body>
</html>